import serve from './index'
// 按需导出

// 获取页码数
export function getPages(className, courseName, studentName) {
    return serve({
        url: '/admin/admin',
        method: 'get',
        params: {
            className: className,
            courseName: courseName,
            studentName: studentName
        }
    })
}

// 搜索
export function getList() {
    return serve({
        url: '/admin/admin',
        method: 'get',
    })
}


// 管理员详情
export function getAdmin(id) {
    return serve({
        url: '/admin/admin/'+id,
        method: 'get',
    })
}

// 添加
export function ADDList(data) {
    return serve({
        url: '/admin/admin',
        method: 'post',
        data: data
    })
}

// 更改
export function changeorno(data) {
    return serve({
        url: '/admin/admin',
        method: 'put',
        data: data
    })
}

// 删除
export function deleted(id) {
    return serve({
        url: '/admin/admin/' + id,
        method: 'delete',
    })
}